<?php
    require_once 'config.php';
    require_once "../includes/SC/SCcause.php";

    $q = $_GET["q"];
    
    $SCcause = new SCcause();
    $listeCauses = $SCcause->lister(new Cause(null, $q));

    foreach ($listeCauses as $uneCause) {
        echo '<option value="'.$uneCause->getNom().'">'.$uneCause->getNom().'</option>';
    }
?> 